NFC tag discovered
TagId: 082c376f
TechList found with these entries:
android.nfc.tech.IsoDep
android.nfc.tech.NfcA
connection with card success

*********************************
************ step 00 ************
* our journey begins            *
*********************************
increase IsoDep timeout for long reading
timeout old: 2000 ms
timeout new: 10000 ms

*********************************
************ step 01 ************
* select PPSE                   *
*********************************
01 select PPSE command  length 20 data: 00a404000e325041592e5359532e444446303100
01 select PPSE response length 107 data: 6f67840e325041592e5359532e4444463031a555bf0c5261194f09a000000059454301008701019f0a080001050100000000611a4f0aa00000035910100280018701019f0a08000105010000000061194f09d276000025474101008701019f0a0800010501000000009000
------------------------------------
6F 67 -- File Control Information (FCI) Template
      84 0E -- Dedicated File (DF) Name
            32 50 41 59 2E 53 59 53 2E 44 44 46 30 31 (BINARY)
      A5 55 -- File Control Information (FCI) Proprietary Template
            BF 0C 52 -- File Control Information (FCI) Issuer Discretionary Data
                     61 19 -- Application Template
                           4F 09 -- Application Identifier (AID) - card
                                 A0 00 00 00 59 45 43 01 00 (BINARY)
                           87 01 -- Application Priority Indicator
                                 01 (BINARY)
                           9F 0A 08 -- [UNKNOWN TAG]
                                    00 01 05 01 00 00 00 00 (BINARY)
                     61 1A -- Application Template
                           4F 0A -- Application Identifier (AID) - card
                                 A0 00 00 03 59 10 10 02 80 01 (BINARY)
                           87 01 -- Application Priority Indicator
                                 01 (BINARY)
                           9F 0A 08 -- [UNKNOWN TAG]
                                    00 01 05 01 00 00 00 00 (BINARY)
                     61 19 -- Application Template
                           4F 09 -- Application Identifier (AID) - card
                                 D2 76 00 00 25 47 41 01 00 (BINARY)
                           87 01 -- Application Priority Indicator
                                 01 (BINARY)
                           9F 0A 08 -- [UNKNOWN TAG]
                                    00 01 05 01 00 00 00 00 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------


*********************************
************ step 02 ************
* search applications on card   *
*********************************
02 analyze select PPSE response and search for tag 0x4F (applications on card)
Found tag 0x4F 3 times:
application Id (AID): a00000005945430100
application Id (AID): a0000003591010028001
application Id (AID): d27600002547410100


*********************************
************ step 03 ************
* select application by AID     *
*********************************
03 select application by AID a00000005945430100 (number 1)

03 select AID command  length 15 data: 00a4040009a0000000594543010000
03 select AID response length 75 data: 6f478409a00000005945430100a53a50086769726f636172648701019f38069f02069f1d025f2d046465656ebf0c1a9f4d02190a9f6e07028000003030009f0a0800010501000000009000
------------------------------------
6F 47 -- File Control Information (FCI) Template
      84 09 -- Dedicated File (DF) Name
            A0 00 00 00 59 45 43 01 00 (BINARY)
      A5 3A -- File Control Information (FCI) Proprietary Template
            50 08 -- Application Label
                  67 69 72 6F 63 61 72 64 (=girocard)
            87 01 -- Application Priority Indicator
                  01 (BINARY)
            9F 38 06 -- Processing Options Data Object List (PDOL)
                     9F 02 06 -- Amount, Authorised (Numeric)
                     9F 1D 02 -- Terminal Risk Management Data
            5F 2D 04 -- Language Preference
                     64 65 65 6E (=deen)
            BF 0C 1A -- File Control Information (FCI) Issuer Discretionary Data
                     9F 4D 02 -- Log Entry
                              19 0A (BINARY)
                     9F 6E 07 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code
                              02 80 00 00 30 30 00 (BINARY)
                     9F 0A 08 -- [UNKNOWN TAG]
                              00 01 05 01 00 00 00 00 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

get single data elements
single data retrieved from card
-----------------------------------------------------
applicationTransactionCounter: 02c4 (hex), 708 (dec)
-----------------------------------------------------
pinTryCounter: 03
-----------------------------------------------------
lastOnlineATCRegister: NULL
-----------------------------------------------------
logFormat: 9f02065f2a029a039f52059f36029f2701ca019505
-----------------------------------------------------


*********************************
************ step 04 ************
* search for tag 0x9F38         *
*********************************
04 search for tag 0x9F38 in the selectAid response

### processing the America Express, VisaCard and GiroCard path ###

found tag 0x9F38 (PDOL) in the selectAid with this length: 6 data: 9f02069f1d02

The card is requesting 2 tags in the PDOL

Tag  Tag Name                        Length Value
-----------------------------------------------------
9f02 Amount, Authorised (Numeric)        6  00 00 00 00 10 00 
9f1d Terminal Risk Management Data       2  00 00 
-----------------------------------------------------


*********************************
************ step 05 ************
* get the processing options    *
*********************************
05 get the processing options  command length: 16 data: 80a800000a8308000000001000000000
05 get the processing options response length: 34 data: 771e8202198094181801010020010100200404000805050108070701080303019000
------------------------------------
77 1E -- Response Message Template Format 2
      82 02 -- Application Interchange Profile
            19 80 (BINARY)
      94 18 -- Application File Locator (AFL)
            18 01 01 00 20 01 01 00 20 04 04 00 08 05 05 01
            08 07 07 01 08 03 03 01 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

workflow c)
the response is of type 'Response Message Template Format 2' [tag 0x77]
found tag 0x77 in the gpoResponse
found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
found tag 0x94 in the gpoResponse length: 24 data: 180101002001010020040400080505010807070108030301

found this AFL data in the gpoResponse to read from: 180101002001010020040400080505010807070108030301


*********************************
************ step 06 ************
* read files & search PAN       *
*********************************
06 read the files from card and search for PAN & Expiration date

The AFL contains 6 entries to read
for SFI 18 we read 1 record
readRecord  command length: 5 data: 00b2011c00
readRecord response length: 231 data: 7081e28f01059081b078cdb2c84b435325ec4478fd6f0f9f0dd61210a78c791adcb22c85fb0095db3a540658569a1c0d35a48d1fd9c2dba83ed941fcb3f2cfe56c943bfa0f8d25f0896284006cbdc10821cf0f0f6ec033332f8eb52c1acad9c52221a27dd23aba70c27c547aece994c7dc5c4d5f1b28529a803340cc249caf6bcb3614d071de141f89a1f4a545c5598395864474514e42c7f1edbeedef27b9a50eeb81ed5762a0af36505ee084703dfd168ec6f02245077d8b9f3201039224b0568adf146b092492be46e5d57d920b026be8e734264cf34710483a0af52d46790f01ab00009000
------------------------------------
70 81 E2 -- Record Template (EMV Proprietary)
90 00 -- Command successfully executed (OK)
------------------------------------

for SFI 20 we read 1 record
readRecord  command length: 5 data: 00b2012400
readRecord response length: 55 data: 70339f47030100019f480a757271487e0b220c81cb00000000000000000000000000000000000000000000000000000000000000009000
------------------------------------
70 33 -- Record Template (EMV Proprietary)
90 00 -- Command successfully executed (OK)
------------------------------------

for SFI 20 we read 1 record
readRecord  command length: 5 data: 00b2042400
readRecord response length: 185 data: 7081b49f4681b087df5942ee89317aea2e53d477ab272794375e9025b0447b304f52e07f54494bea054076a0fd22faf4ee85cfd06ae61c44e0bf1c0156b1c0f287312e1c9460c0b93fac7bdd88a6cf286daeeab5d81310ff49b9d80f4b905261429b44a2c0e3b876ee8825fbb6ff3aef14a645983e886a61a7acde252698868b74033bbecee902050196579b2df75bfe070a14a45ce710c5e782da9ecd20d21db77352461b031ad83d9137615b8a63aca55900619a7a9c9000
------------------------------------
70 81 B4 -- Record Template (EMV Proprietary)
         9F 46 81 B0 -- ICC Public Key Certificate
                     87 DF 59 42 EE 89 31 7A EA 2E 53 D4 77 AB 27 27
                     94 37 5E 90 25 B0 44 7B 30 4F 52 E0 7F 54 49 4B
                     EA 05 40 76 A0 FD 22 FA F4 EE 85 CF D0 6A E6 1C
                     44 E0 BF 1C 01 56 B1 C0 F2 87 31 2E 1C 94 60 C0
                     B9 3F AC 7B DD 88 A6 CF 28 6D AE EA B5 D8 13 10
                     FF 49 B9 D8 0F 4B 90 52 61 42 9B 44 A2 C0 E3 B8
                     76 EE 88 25 FB B6 FF 3A EF 14 A6 45 98 3E 88 6A
                     61 A7 AC DE 25 26 98 86 8B 74 03 3B BE CE E9 02
                     05 01 96 57 9B 2D F7 5B FE 07 0A 14 A4 5C E7 10
                     C5 E7 82 DA 9E CD 20 D2 1D B7 73 52 46 1B 03 1A
                     D8 3D 91 37 61 5B 8A 63 AC A5 59 00 61 9A 7A 9C (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

for SFI 8 we read 1 record
readRecord  command length: 5 data: 00b2050c00
readRecord response length: 60 data: 70385f24032112315a0a6726428902046846007f5f3401025f280202809f0702ffc09f0d05fc40a480009f0e0500101800009f0f05fc40a498009000
------------------------------------
70 38 -- Record Template (EMV Proprietary)
      5F 24 03 -- Application Expiration Date
               21 12 31 (NUMERIC)
      5A 0A -- Application Primary Account Number (PAN)
            67 26 42 89 02 04 68 46 00 7F (NUMERIC)
      5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
               02 (NUMERIC)
      5F 28 02 -- Issuer Country Code
               02 80 (NUMERIC)
      9F 07 02 -- Application Usage Control
               FF C0 (BINARY)
      9F 0D 05 -- Issuer Action Code - Default
               FC 40 A4 80 00 (BINARY)
      9F 0E 05 -- Issuer Action Code - Denial
               00 10 18 00 00 (BINARY)
      9F 0F 05 -- Issuer Action Code - Online
               FC 40 A4 98 00 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

found tag 0x5a in the readRecordResponse length: 10 data: 6726428902046846007f
found tag 0x5f24 in the readRecordResponse length: 3 data: 211231


*********************************
************ step 07 ************
* print PAN & expire date       *
*********************************
07 get PAN and Expiration date from tags 0x5a and 0x5f24
data for AID a00000005945430100
PAN: 6726428902046846007
Expiration date (YYMMDD): 211231

for SFI 8 we read 1 record
readRecord  command length: 5 data: 00b2070c00
readRecord response length: 32 data: 701c8e0c00000000000000001f0302039f080200029f6c02ffff9f4a01829000
------------------------------------
70 1C -- Record Template (EMV Proprietary)
      8E 0C -- Cardholder Verification Method (CVM) List
            00 00 00 00 00 00 00 00 1F 03 02 03 (BINARY)
      9F 08 02 -- Application Version Number - card
               00 02 (BINARY)
      9F 6C 02 -- Mag Stripe Application Version Number (Card)
               FF FF (BINARY)
      9F 4A 01 -- Static Data Authentication Tag List
               82 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

for SFI 8 we read 1 record
readRecord  command length: 5 data: 00b2030c00
readRecord response length: 65 data: 703d8c1b9f02069f03069f1a0295055f2a029a039c019f37049f35019f34038d0991108a0295059f370457136726428902046846007d21122010254828156f9000
------------------------------------
70 3D -- Record Template (EMV Proprietary)
      8C 1B -- Card Risk Management Data Object List 1 (CDOL1)
            9F 02 06 -- Amount, Authorised (Numeric)
            9F 03 06 -- Amount, Other (Numeric)
            9F 1A 02 -- Terminal Country Code
            95 05 -- Terminal Verification Results (TVR)
            5F 2A 02 -- Transaction Currency Code
            9A 03 -- Transaction Date
            9C 01 -- Transaction Type
            9F 37 04 -- Unpredictable Number
            9F 35 01 -- Terminal Type
            9F 34 03 -- Cardholder Verification (CVM) Results
      8D 09 -- Card Risk Management Data Object List 2 (CDOL2)
            91 10 -- Issuer Authentication Data
            8A 02 -- Authorisation Response Code
            95 05 -- Terminal Verification Results (TVR)
            9F 37 04 -- Unpredictable Number
      57 13 -- Track 2 Equivalent Data
            67 26 42 89 02 04 68 46 00 7D 21 12 20 10 25 48
            28 15 6F (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

*********************************


*********************************
************ step 03 ************
* select application by AID     *
*********************************
03 select application by AID a0000003591010028001 (number 2)

03 select AID command  length 16 data: 00a404000aa000000359101002800100
03 select AID response length 76 data: 6f48840aa0000003591010028001a53a50086769726f636172648701019f38069f02069f1d025f2d046465656ebf0c1a9f4d02190a9f6e07028000003030009f0a0800010501000000009000
------------------------------------
6F 48 -- File Control Information (FCI) Template
      84 0A -- Dedicated File (DF) Name
            A0 00 00 03 59 10 10 02 80 01 (BINARY)
      A5 3A -- File Control Information (FCI) Proprietary Template
            50 08 -- Application Label
                  67 69 72 6F 63 61 72 64 (=girocard)
            87 01 -- Application Priority Indicator
                  01 (BINARY)
            9F 38 06 -- Processing Options Data Object List (PDOL)
                     9F 02 06 -- Amount, Authorised (Numeric)
                     9F 1D 02 -- Terminal Risk Management Data
            5F 2D 04 -- Language Preference
                     64 65 65 6E (=deen)
            BF 0C 1A -- File Control Information (FCI) Issuer Discretionary Data
                     9F 4D 02 -- Log Entry
                              19 0A (BINARY)
                     9F 6E 07 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code
                              02 80 00 00 30 30 00 (BINARY)
                     9F 0A 08 -- [UNKNOWN TAG]
                              00 01 05 01 00 00 00 00 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

get single data elements
single data retrieved from card
-----------------------------------------------------
applicationTransactionCounter: 02c5 (hex), 709 (dec)
-----------------------------------------------------
pinTryCounter: 03
-----------------------------------------------------
lastOnlineATCRegister: NULL
-----------------------------------------------------
logFormat: 9f02065f2a029a039f52059f36029f2701ca019505
-----------------------------------------------------


*********************************
************ step 04 ************
* search for tag 0x9F38         *
*********************************
04 search for tag 0x9F38 in the selectAid response

### processing the America Express, VisaCard and GiroCard path ###

found tag 0x9F38 (PDOL) in the selectAid with this length: 6 data: 9f02069f1d02

The card is requesting 2 tags in the PDOL

Tag  Tag Name                        Length Value
-----------------------------------------------------
9f02 Amount, Authorised (Numeric)        6  00 00 00 00 10 00 
9f1d Terminal Risk Management Data       2  00 00 
-----------------------------------------------------


*********************************
************ step 05 ************
* get the processing options    *
*********************************
05 get the processing options  command length: 16 data: 80a800000a8308000000001000000000
05 get the processing options response length: 34 data: 771e8202198094181801010020010100200404000805050108070701080303019000
------------------------------------
77 1E -- Response Message Template Format 2
      82 02 -- Application Interchange Profile
            19 80 (BINARY)
      94 18 -- Application File Locator (AFL)
            18 01 01 00 20 01 01 00 20 04 04 00 08 05 05 01
            08 07 07 01 08 03 03 01 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

workflow c)
the response is of type 'Response Message Template Format 2' [tag 0x77]
found tag 0x77 in the gpoResponse
found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
found tag 0x94 in the gpoResponse length: 24 data: 180101002001010020040400080505010807070108030301

found this AFL data in the gpoResponse to read from: 180101002001010020040400080505010807070108030301


*********************************
************ step 06 ************
* read files & search PAN       *
*********************************
06 read the files from card and search for PAN & Expiration date

The AFL contains 6 entries to read
for SFI 18 we read 1 record
readRecord  command length: 5 data: 00b2011c00
readRecord response length: 231 data: 7081e28f01059081b078cdb2c84b435325ec4478fd6f0f9f0dd61210a78c791adcb22c85fb0095db3a540658569a1c0d35a48d1fd9c2dba83ed941fcb3f2cfe56c943bfa0f8d25f0896284006cbdc10821cf0f0f6ec033332f8eb52c1acad9c52221a27dd23aba70c27c547aece994c7dc5c4d5f1b28529a803340cc249caf6bcb3614d071de141f89a1f4a545c5598395864474514e42c7f1edbeedef27b9a50eeb81ed5762a0af36505ee084703dfd168ec6f02245077d8b9f3201039224b0568adf146b092492be46e5d57d920b026be8e734264cf34710483a0af52d46790f01ab00009000
------------------------------------
70 81 E2 -- Record Template (EMV Proprietary)
90 00 -- Command successfully executed (OK)
------------------------------------

for SFI 20 we read 1 record
readRecord  command length: 5 data: 00b2012400
readRecord response length: 55 data: 70339f47030100019f480a757271487e0b220c81cb00000000000000000000000000000000000000000000000000000000000000009000
------------------------------------
70 33 -- Record Template (EMV Proprietary)
90 00 -- Command successfully executed (OK)
------------------------------------

for SFI 20 we read 1 record
readRecord  command length: 5 data: 00b2042400
readRecord response length: 185 data: 7081b49f4681b087df5942ee89317aea2e53d477ab272794375e9025b0447b304f52e07f54494bea054076a0fd22faf4ee85cfd06ae61c44e0bf1c0156b1c0f287312e1c9460c0b93fac7bdd88a6cf286daeeab5d81310ff49b9d80f4b905261429b44a2c0e3b876ee8825fbb6ff3aef14a645983e886a61a7acde252698868b74033bbecee902050196579b2df75bfe070a14a45ce710c5e782da9ecd20d21db77352461b031ad83d9137615b8a63aca55900619a7a9c9000
------------------------------------
70 81 B4 -- Record Template (EMV Proprietary)
         9F 46 81 B0 -- ICC Public Key Certificate
                     87 DF 59 42 EE 89 31 7A EA 2E 53 D4 77 AB 27 27
                     94 37 5E 90 25 B0 44 7B 30 4F 52 E0 7F 54 49 4B
                     EA 05 40 76 A0 FD 22 FA F4 EE 85 CF D0 6A E6 1C
                     44 E0 BF 1C 01 56 B1 C0 F2 87 31 2E 1C 94 60 C0
                     B9 3F AC 7B DD 88 A6 CF 28 6D AE EA B5 D8 13 10
                     FF 49 B9 D8 0F 4B 90 52 61 42 9B 44 A2 C0 E3 B8
                     76 EE 88 25 FB B6 FF 3A EF 14 A6 45 98 3E 88 6A
                     61 A7 AC DE 25 26 98 86 8B 74 03 3B BE CE E9 02
                     05 01 96 57 9B 2D F7 5B FE 07 0A 14 A4 5C E7 10
                     C5 E7 82 DA 9E CD 20 D2 1D B7 73 52 46 1B 03 1A
                     D8 3D 91 37 61 5B 8A 63 AC A5 59 00 61 9A 7A 9C (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

for SFI 8 we read 1 record
readRecord  command length: 5 data: 00b2050c00
readRecord response length: 60 data: 70385f24032112315a0a6726428902046846007f5f3401025f280202809f0702ffc09f0d05fc40a480009f0e0500101800009f0f05fc40a498009000
------------------------------------
70 38 -- Record Template (EMV Proprietary)
      5F 24 03 -- Application Expiration Date
               21 12 31 (NUMERIC)
      5A 0A -- Application Primary Account Number (PAN)
            67 26 42 89 02 04 68 46 00 7F (NUMERIC)
      5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
               02 (NUMERIC)
      5F 28 02 -- Issuer Country Code
               02 80 (NUMERIC)
      9F 07 02 -- Application Usage Control
               FF C0 (BINARY)
      9F 0D 05 -- Issuer Action Code - Default
               FC 40 A4 80 00 (BINARY)
      9F 0E 05 -- Issuer Action Code - Denial
               00 10 18 00 00 (BINARY)
      9F 0F 05 -- Issuer Action Code - Online
               FC 40 A4 98 00 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

found tag 0x5a in the readRecordResponse length: 10 data: 6726428902046846007f
found tag 0x5f24 in the readRecordResponse length: 3 data: 211231


*********************************
************ step 07 ************
* print PAN & expire date       *
*********************************
07 get PAN and Expiration date from tags 0x5a and 0x5f24
data for AID a0000003591010028001
PAN: 6726428902046846007
Expiration date (YYMMDD): 211231

for SFI 8 we read 1 record
readRecord  command length: 5 data: 00b2070c00
readRecord response length: 32 data: 701c8e0c00000000000000001f0302039f080200029f6c02ffff9f4a01829000
------------------------------------
70 1C -- Record Template (EMV Proprietary)
      8E 0C -- Cardholder Verification Method (CVM) List
            00 00 00 00 00 00 00 00 1F 03 02 03 (BINARY)
      9F 08 02 -- Application Version Number - card
               00 02 (BINARY)
      9F 6C 02 -- Mag Stripe Application Version Number (Card)
               FF FF (BINARY)
      9F 4A 01 -- Static Data Authentication Tag List
               82 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

for SFI 8 we read 1 record
readRecord  command length: 5 data: 00b2030c00
readRecord response length: 65 data: 703d8c1b9f02069f03069f1a0295055f2a029a039c019f37049f35019f34038d0991108a0295059f370457136726428902046846007d21122010254828156f9000
------------------------------------
70 3D -- Record Template (EMV Proprietary)
      8C 1B -- Card Risk Management Data Object List 1 (CDOL1)
            9F 02 06 -- Amount, Authorised (Numeric)
            9F 03 06 -- Amount, Other (Numeric)
            9F 1A 02 -- Terminal Country Code
            95 05 -- Terminal Verification Results (TVR)
            5F 2A 02 -- Transaction Currency Code
            9A 03 -- Transaction Date
            9C 01 -- Transaction Type
            9F 37 04 -- Unpredictable Number
            9F 35 01 -- Terminal Type
            9F 34 03 -- Cardholder Verification (CVM) Results
      8D 09 -- Card Risk Management Data Object List 2 (CDOL2)
            91 10 -- Issuer Authentication Data
            8A 02 -- Authorisation Response Code
            95 05 -- Terminal Verification Results (TVR)
            9F 37 04 -- Unpredictable Number
      57 13 -- Track 2 Equivalent Data
            67 26 42 89 02 04 68 46 00 7D 21 12 20 10 25 48
            28 15 6F (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

*********************************


*********************************
************ step 03 ************
* select application by AID     *
*********************************
03 select application by AID d27600002547410100 (number 3)

03 select AID command  length 15 data: 00a4040009d2760000254741010000
03 select AID response length 78 data: 6f4a8409d27600002547410100a53d50086769726f636172648701019f38099f33029f35019f40015f2d046465656ebf0c1a9f4d02190a9f6e07028000003030009f0a0800010501000000009000
------------------------------------
6F 4A -- File Control Information (FCI) Template
      84 09 -- Dedicated File (DF) Name
            D2 76 00 00 25 47 41 01 00 (BINARY)
      A5 3D -- File Control Information (FCI) Proprietary Template
            50 08 -- Application Label
                  67 69 72 6F 63 61 72 64 (=girocard)
            87 01 -- Application Priority Indicator
                  01 (BINARY)
            9F 38 09 -- Processing Options Data Object List (PDOL)
                     9F 33 02 -- Terminal Capabilities
                     9F 35 01 -- Terminal Type
                     9F 40 01 -- Additional Terminal Capabilities
            5F 2D 04 -- Language Preference
                     64 65 65 6E (=deen)
            BF 0C 1A -- File Control Information (FCI) Issuer Discretionary Data
                     9F 4D 02 -- Log Entry
                              19 0A (BINARY)
                     9F 6E 07 -- Visa Low-Value Payment (VLP) Issuer Authorisation Code
                              02 80 00 00 30 30 00 (BINARY)
                     9F 0A 08 -- [UNKNOWN TAG]
                              00 01 05 01 00 00 00 00 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

get single data elements
single data retrieved from card
-----------------------------------------------------
applicationTransactionCounter: 02c6 (hex), 710 (dec)
-----------------------------------------------------
pinTryCounter: 03
-----------------------------------------------------
lastOnlineATCRegister: NULL
-----------------------------------------------------
logFormat: 9f02065f2a029a039f52059f36029f2701ca019505
-----------------------------------------------------


*********************************
************ step 04 ************
* search for tag 0x9F38         *
*********************************
04 search for tag 0x9F38 in the selectAid response

### processing the America Express, VisaCard and GiroCard path ###

found tag 0x9F38 (PDOL) in the selectAid with this length: 9 data: 9f33029f35019f4001

The card is requesting 3 tags in the PDOL

Tag  Tag Name                        Length Value
-----------------------------------------------------
9f33 Terminal Capabilities               2  00 00 
9f35 Terminal Type                       1  22 
9f40 Additional Terminal Capabilities    1  00 
-----------------------------------------------------


*********************************
************ step 05 ************
* get the processing options    *
*********************************
05 get the processing options  command length: 12 data: 80a800000683040000220000
05 get the processing options response length: 14 data: 770a820218009404080205009000
------------------------------------
77 0A -- Response Message Template Format 2
      82 02 -- Application Interchange Profile
            18 00 (BINARY)
      94 04 -- Application File Locator (AFL)
            08 02 05 00 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

workflow c)
the response is of type 'Response Message Template Format 2' [tag 0x77]
found tag 0x77 in the gpoResponse
found 'AFL' [tag 0x94] in the response of type 'Response Message Template Format 2' [tag 0x77]
found tag 0x94 in the gpoResponse length: 4 data: 08020500

found this AFL data in the gpoResponse to read from: 08020500


*********************************
************ step 06 ************
* read files & search PAN       *
*********************************
06 read the files from card and search for PAN & Expiration date

The AFL contains 1 entry to read
for SFI 8 we read 4 records
readRecord  command length: 5 data: 00b2020c00
readRecord response length: 9 data: 70059f080200029000
------------------------------------
70 05 -- Record Template (EMV Proprietary)
      9F 08 02 -- Application Version Number - card
               00 02 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

readRecord  command length: 5 data: 00b2030c00
readRecord response length: 65 data: 703d8c1b9f02069f03069f1a0295055f2a029a039c019f37049f35019f34038d0991108a0295059f370457136726428902046846007d21122010254828156f9000
------------------------------------
70 3D -- Record Template (EMV Proprietary)
      8C 1B -- Card Risk Management Data Object List 1 (CDOL1)
            9F 02 06 -- Amount, Authorised (Numeric)
            9F 03 06 -- Amount, Other (Numeric)
            9F 1A 02 -- Terminal Country Code
            95 05 -- Terminal Verification Results (TVR)
            5F 2A 02 -- Transaction Currency Code
            9A 03 -- Transaction Date
            9C 01 -- Transaction Type
            9F 37 04 -- Unpredictable Number
            9F 35 01 -- Terminal Type
            9F 34 03 -- Cardholder Verification (CVM) Results
      8D 09 -- Card Risk Management Data Object List 2 (CDOL2)
            91 10 -- Issuer Authentication Data
            8A 02 -- Authorisation Response Code
            95 05 -- Terminal Verification Results (TVR)
            9F 37 04 -- Unpredictable Number
      57 13 -- Track 2 Equivalent Data
            67 26 42 89 02 04 68 46 00 7D 21 12 20 10 25 48
            28 15 6F (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

readRecord  command length: 5 data: 00b2040c00
readRecord response length: 16 data: 700c8e0a000000000000000002039000
------------------------------------
70 0C -- Record Template (EMV Proprietary)
      8E 0A -- Cardholder Verification Method (CVM) List
            00 00 00 00 00 00 00 00 02 03 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

readRecord  command length: 5 data: 00b2050c00
readRecord response length: 60 data: 70385f24032112315a0a6726428902046846007f5f3401025f280202809f0702ffc09f0d05fc40a480009f0e0500101800009f0f05fc40a498009000
------------------------------------
70 38 -- Record Template (EMV Proprietary)
      5F 24 03 -- Application Expiration Date
               21 12 31 (NUMERIC)
      5A 0A -- Application Primary Account Number (PAN)
            67 26 42 89 02 04 68 46 00 7F (NUMERIC)
      5F 34 01 -- Application Primary Account Number (PAN) Sequence Number
               02 (NUMERIC)
      5F 28 02 -- Issuer Country Code
               02 80 (NUMERIC)
      9F 07 02 -- Application Usage Control
               FF C0 (BINARY)
      9F 0D 05 -- Issuer Action Code - Default
               FC 40 A4 80 00 (BINARY)
      9F 0E 05 -- Issuer Action Code - Denial
               00 10 18 00 00 (BINARY)
      9F 0F 05 -- Issuer Action Code - Online
               FC 40 A4 98 00 (BINARY)
90 00 -- Command successfully executed (OK)
------------------------------------

found tag 0x5a in the readRecordResponse length: 10 data: 6726428902046846007f
found tag 0x5f24 in the readRecordResponse length: 3 data: 211231


*********************************
************ step 07 ************
* print PAN & expire date       *
*********************************
07 get PAN and Expiration date from tags 0x5a and 0x5f24
data for AID d27600002547410100
PAN: 6726428902046846007
Expiration date (YYMMDD): 211231

*********************************

*********************************
************ step 99 ************
* our journey ends              *
*********************************
